package com.witframework.meta.validator;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

import org.apache.commons.lang.StringUtils;



public class EmailValidator implements ConstraintValidator<Email, String> {

	public void initialize(Email arg0) {		
		
	}

	public boolean isValid(String str, ConstraintValidatorContext arg1) {
		if(StringUtils.isNotEmpty(str)){
			return true;
		}
		return false;
	}

}
